#ifndef INC_RESIZECMD_H
#define INC_RESIZECMD_H

#include "Command.h"

#include <QSize>

class UMLBox;

class ResizeCmd : public Command
{
	public:
		/**
		 * Constructs a command for specified UMLBox that will resize the box to
		 * its current size (i.e., do nothing).
		 */
		ResizeCmd(UMLBox* target);

		/*** ACCESSORS ***/

		QSize size() const;

		void setSize(const QSize&);

		/*** COMMAND STUFF ***/

		void execute();
		
		void unexecute();

		const char* name() const;

	private:
		bool _executed;

		/* We don't own this object, btw. */
		UMLBox* _target;

		QSize _size;
		QSize _oldSize;
};

#endif // INC_RESIZECMD_H

